<template>
  <div class="mod-config">
  <table-view ref="view"
                :searchAttrs="searchAttrs"
                :primaryKey="primaryKey"
                :listApiName="listApiName"
                :deleteApiName="deleteApiName"
                :exportApiName="exportApiName"
                :saveAuthName="saveAuthName"
                :deleteAuthName="deleteAuthName"
                :showAttrs="showAttrs"
    >
    </table-view>
    <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
  </div>
</template>


<script>
import tableView from '@/components/tableView'
import basicMixins from '@/utils/commonViewMixins'
import AddOrUpdate from './boxreturninfo-add-or-update'

export default {
  mixins: [basicMixins],
  data() {
    return {
      primaryKey: 'id',
      listApiName: 'boxApi/listBoxReturnInfo',
      deleteApiName: 'boxApi/deleteBoxReturnInfo',
      exportApiName: 'boxApi/getBoxReturnInfoExport',
      saveAuthName: 'box:boxreturninfo:save',
      deleteAuthName: 'box:boxreturninfo:delete',
      searchAttrs: {},
      showAttrs: {
        boxNo: {
          label: '纸箱编号'
        },

        dayTime: {
          label: '日期',type:'date'
        },
        boxFactoryName: {
          label: '纸箱厂'
        },
        boxNumber: {
          label: '退回数量'
        },
        unitPrice: {
          label: '单价'
        },
        totalPrice: {
          label: '总价'
        },
        remark: {
          label: '备注'
        },
        status: {
          label: '状态'
        }
      }
    }
  },
  components: {
    tableView,
    AddOrUpdate
  }
}
</script>
